package abstract_d2;

public class Test {
    public static void main(String[] args) {
    //抽象类不能创建对象
    //A a = new A();
    B b = new B();
    b.setName("小狗");
    b.cry();
    C c = new C();
    c.setName("小猫");
    c.cry();
    }
}
